﻿using System.Threading.Tasks;
using WinRT.SIP.UILogic.Models;

namespace WinRT.SIP.UILogic.Repositories
{
    public class CredentialsRepository : ICredentialsRepository
    {
        public Credentials Load()
        {
            return null;
        }

        public void Save(Credentials credentials)
        {

        }

        public async Task<Credentials> LoadAsync()
        {
            var task = Task<Credentials>.Run(() => Load());
            await task;
            return task.Result;
        }

        public async Task SaveAsync(Credentials credentials)
        {
            await Task.Run(() => Save(credentials));
        }
    }
}
